import request from '@/utils/request'

export function queryByPage (data) {
  return request({
    url: '/proFirstClass/queryByPage',
    method: 'post',
    data
  })
}

export function insert (data) {
  return request({
    url: '/proFirstClass/insert',
    method: 'post',
    data
  })
}

export function update (data) {
  return request({
    url: '/proFirstClass/update',
    method: 'post',
    data
  })
}

export function deleteById (params) {
  return request({
    url: '/proFirstClass/deleteById',
    method: 'get',
    params
  })
}
// 对账单
export function statement (data) {
  return request({
    url: '/hospital/statement',
    method: 'post',
    data
  })
}
// 对账单
export function finance (params) {
  return request({
    url: '/hospital/finance',
    method: 'get',
    params
  })
}
// 计算提现金额
export function amountReceived (data) {
  return request({
    url: '/hospital/amountReceived',
    method: 'post',
    data
  })
}
// 查询银行卡
export function queryByBankId (params) {
  return request({
    url: '/hospital/queryByBankId',
    method: 'get',
    params
  })
}
// 新增银行卡
export function addBank (data) {
  return request({
    url: '/hospital/addBank',
    method: 'post',
    data
  })
}
// 提现
export function withdraw (data) {
  return request({
    url: '/hospital/withdraw',
    method: 'post',
    data
  })
}
// 余额明细
export function balanceDetails (params) {
  return request({
    url: '/hospital/balanceDetails',
    method: 'get',
    params
  })
}
// 提现记录
export function withdrawalHistory (params) {
  return request({
    url: '/hospital/withdrawalHistory',
    method: 'get',
    params
  })
}